package holdobject;

import java.util.ArrayList;
import java.util.Collection;

public class SimpleCollection {
    public static void main(String[] args) {
        Collection<Integer> collection=new ArrayList<Integer>();
        for (int i = 0; i <10 ; i++) {
            ((ArrayList<Integer>) collection).add(i);
        }
        for (int i = 0; i <collection.size() ; i++) {
            System.out.print(i+", ");
        }
    }
}
